home *** CD-ROM | disk | FTP | other *** search
/ .net (French) 1996 November / .net Magazine (FR) - Issue 01 - Nov 1996.iso / mac / Edition Web / HTMLedit173-ppc / HTML.edit 1.7.3 (ppc) / HTML.edit 1.7.3 (ppc).rsrc / TEXT_23075_Format Submenu.txt < prev    next >
Text File  |  1996-09-16  |  8KB  |  159 lines

  1.  
  2. Format Submenu
  3.  
  4. The Format submenu contains commands that modify a section of text by placing it into a specific construct, such as various types of lists, menus, directories, glossaries, etc., as apart from semantic or physical character formatting such as <EM>Emphasis </EM>.
  5.  
  6. You can add HTML tags to a selection of text either before or after you type it. By creating a selection of text with the mouse, you then select the HTML format for the selection from the Format command under the HyperText menu, or a physical or logical text style from the Style menu. Alternately, if the cursor is inserted into the document but there is no selection, choosing an HTML format will insert the tags into the text surrounding the current insertion point ΓÇô you are ready to type. Note that key shortcuts for many HTML formats and styles can be found on the Palette Help display.
  7.  
  8. You can select any number of lines of text, and then choose a list command to format the lines, each becoming a list item. Definition lists require that the number of lines be an even number, as each odd/even pair becomes term and definition.
  9.  
  10. Command-L inserts a new list item tag <LI>. Holding down the Option key before choosing the command provides for alternate renderings, such as COMPACT or WIDTH attributes where available.
  11.  
  12. HTML Formats
  13.  
  14. Following is a brief description of each format, based on the text of the June 1995 HTML 2.0 draft DTD:
  15.  
  16. Block Structuring Elements
  17.  
  18. Block structuring elements include paragraphs, lists, and block quotes. They must not contain heading elements, but they may contain phrase markup, and in some cases, they may be nested.
  19.  
  20. Preformatted Text: PRE
  21. The PRE element represents a character cell block of text and is suitable for text that has been formatted for a monospaced font. 
  22.  
  23. The PRE tag may be used with the optional WIDTH attribute. The WIDTH attribute specifies the maximum number of characters for a line and allows the HTML user agent to select a suitable font and indentation. [The WIDTH attribute may be added by holding down the Option key before performing the command. The default width is set under HTML Preferences.]
  24.  
  25. Within preformatted text: 
  26.  
  27. ΓÇó Line breaks within the text are rendered as a move to the beginning of the next line.
  28. ΓÇó Anchor elements and phrase markup may be used.
  29. ΓÇó Elements that define paragraph formatting (headings, address, etc.) must not be used.
  30. ΓÇó The horizontal tab character (code position 9 in the HTML document character set) must be interpreted as the smallest positive nonzero number of spaces which will leave the number of characters so far on the line as a multiple of 8. Documents should not contain tab characters, as they are not supported consistently. 
  31.  
  32. Example of use: 
  33.  
  34. <PRE>
  35. Line 1.
  36.     Line 2 is to the right of line 1.  <a href="abc">abc</a>
  37.     Line 3 aligns with line 2.         <a href="def">def</a>
  38. </PRE>
  39.  
  40. Example and Listing: XMP, Listing
  41. Previous versions of HTML included support for examples and listings of program code, which had a number of unfortunate interactions with processing techniques and tended to be used and implemented inconsistently. HTML documents should no longer contain XMP nor LISTING elements -- the PRE tag is more expressive and more consistently supported. [Neither XMP or LISTING are supported in HTML.edit]
  42.  
  43. Address: ADDRESS
  44. The ADDRESS element contains such information as address, signature and authorship, often at the beginning or end of the body of a document. 
  45.  
  46. Typically, the ADDRESS element is rendered in an italic typeface and may be indented. 
  47.  
  48. Example of use: 
  49.  
  50. <ADDRESS>
  51. Murray Altheim<BR>
  52. Equinox Development<BR>
  53. P.O. Box 6831<BR>
  54. Wheeling, WV 26003<BR>
  55. </ADDRESS>
  56.  
  57. Block Quote: BLOCKQUOTE
  58.  
  59. The BLOCKQUOTE element contains text quoted from another source. 
  60.  
  61. A typical rendering might be a slight extra left and right indent, and/or italic font. The BLOCKQUOTE typically provides space above and below the quote. 
  62.  
  63. Single-font rendition may reflect the quotation style of Internet mail by putting a vertical line of graphic characters, such as the greater than symbol (>), in the left margin. 
  64.  
  65. Example of use: 
  66.  
  67. <P>Every detail of the universe is seen as proposing a view of the whole. These are the people for whome Blake wrote the famous advice in the "Auguries of Innocence:"</P>
  68. <BLOCKQUOTE>
  69. <P>To see the World in a Grain of Sand, 
  70. And a Heaven in a Wild Flower, 
  71. Hold Infinity in the palm of your hand, 
  72. And Eternity in an hour.</P>
  73. </BLOCKQUOTE>
  74.  
  75. List Elements
  76.  
  77. HTML includes a number of list elements. They may be used in combination; for example, a OL may be nested in an LI element of a UL. 
  78.  
  79. The COMPACT attribute suggests that a compact rendering be used. [The COMPACT attribute may be added by holding down the Option key before performing the command.]
  80.  
  81. Unordered List: UL, LI
  82. The UL represents a list of items -- typically a bulleted list. 
  83.  
  84. The content of a UL element is a sequence of LI elements. For example: 
  85.  
  86. <UL>
  87. <LI>First list item
  88. <LI>Second list item
  89.  <p>second paragraph of second item
  90. <LI>Third list item
  91. </UL>
  92.  
  93. Ordered List: OL
  94. The OL element represents an ordered list of items, sorted by sequence or order of importance. It is typically rendered as a numbered list. 
  95.  
  96. The content of a OL element is a sequence of LI elements. For example: 
  97.  
  98. <OL>
  99. <LI>Click the Web button to open URI window.
  100. <LI>Enter the URI number in the text field of the Open URI 
  101. window. The Web document you specified is displayed.
  102.   <ol>
  103.    <li>substep 1
  104.    <li>substep 2
  105.   </ol>
  106. <LI>Click highlighted text to move from one link to another.
  107. </OL>
  108.  
  109. Directory List: DIR
  110. The DIR element is similar to the UL element. It represents a list of short items, typically up to 20 characters each. Items in a directory list may be arranged in columns, typically 24 characters wide.
  111.  
  112. The content of a DIR element is a sequence of LI elements. Nested block elements are not allowed in the content of DIR elements. For example: 
  113.  
  114. <DIR>
  115. <LI>A-H<LI>I-M
  116. <LI>M-R<LI>S-Z
  117. </DIR>
  118.  
  119. Menu List: MENU
  120. The MENU element is a list of items with typically one line per item. The menu list style is typically more compact than the style of an unordered list. 
  121.  
  122. The content of a MENU element is a sequence of LI elements. Nested block elements are not allowed in the content of MENU elements. For example: 
  123.  
  124. <MENU>
  125. <LI>First item in the list.
  126. <LI>Second item in the list.
  127. <LI>Third item in the list.
  128. </MENU>
  129.  
  130. Definition List: DL, DT, DD
  131. A definition list is a list of terms and corresponding definitions. Definition lists are typically formatted with the term flush-left and the definition, formatted paragraph style, indented after the term. 
  132.  
  133. The content of a DL element is a sequence of DT elements and/or DD elements, usually in pairs. Multiple DT may be paired with a single DD element. Documents should not contain multiple consecutive DD elements. 
  134.  
  135. Example of use: 
  136.  
  137. <DL>
  138. <DT>Term<DD>This is the definition of the first term.
  139. <DT>Term<DD>This is the definition of the second term.
  140. </DL>
  141.  
  142. If the DT term does not fit in the DT column (typically one third of the display area), it may be extended across the page with the DD section moved to the next line, or it may be wrapped onto successive lines of the left hand column. 
  143.  
  144. The optional COMPACT attribute suggests that a compact rendering be used, because the list items are small and/or the entire list is large. 
  145.  
  146. Unless the COMPACT attribute is present, an HTML user agent may leave white space between successive DT, DD pairs. The COMPACT attribute may also reduce the width of the left-hand (DT) column. 
  147.  
  148. <DL COMPACT>
  149. <DT>Term<DD>This is the first definition in compact format.
  150. <DT>Term<DD>This is the second definition in compact format.
  151. </DL>
  152.  
  153. Check A Beginner's Guide to HTML  for more details on each HTML format, especially the section "Additional Markup Tags":
  154.  
  155.    http://www.ncsa.uiuc.edu/General/Internet/WWW/HTMLPrimer.html#A1.4
  156.  
  157. Back to HyperText menu, on to Image Utility, or return to Tool Palette Menus.
  158.  
  159.